﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CommentList.aspx.cs" Inherits="CommentManagement_CommentList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript">
        function renew() { 
        var ddlcheck=document.getElementById("ddlCheckDateName");
        if (ddlcheck.options[ddlcheck.selectedIndex].value == "0") {
            document.getElementById("txtBeginDate").value = "";
            document.getElementById("txtendDate").value = "";
        }
        }
    </script>
</head>
<body>
     <form id="form1" runat="server">
     <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
               查看评论信息</div>
        </div>
        
          <div id="search" class="search">
                <table cellspacing="1" cellpadding="3" border="0">
                    <tr>
                        <td class="noWrapTD">
           <asp:DropDownList ID="ddlCheckDateName" runat="server"  CssClass="inp2"  onchange=" renew();"
              ><asp:ListItem Value="0">请选择条件</asp:ListItem><asp:ListItem Value="1">按开课日期</asp:ListItem><asp:ListItem Value="2">按评论日期</asp:ListItem></asp:DropDownList>
        </td>
       <td class="noWrapTD">开始日期:</td>
      <td> <asp:TextBox runat="server" ID="txtBeginDate"  onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})" class="inp1 Wdate" style="width: 100px"></asp:TextBox>
        </td>
       <td class="noWrapTD">结束日期:</td>
                       <td><asp:TextBox runat="server" ID="txtendDate"  onfocus ="new WdatePicker({dateFmt:('yyyy-MM-dd')})" class="inp1 Wdate" style="width: 100px"></asp:TextBox>
        </td>
            </tr>
         <tr> 
     <td class="noWrapTD"> 按培训班查找:</td>
      <td >
       <asp:DropDownList
        ID="ddlTrainClass" runat="server" CssClass="inp2" DataValueField="" 
             DataTextField="" >
    </asp:DropDownList></td>
       <td> <asp:Button ID="btnCheckByTrainClass" runat="server" Text="查找"  CssClass="button" 
            onclick="btnCheckByTrainClass_Click"  />
    </td>
            </tr> 
            </table>
           </div> 
         <br class="sp3px" />
      <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
      <td class="noWrapTD">操作</td>
    <td  class="noWrapTD">课程名称</td>
        <td  class="noWrapTD">班级编号</td>
     <td  class="noWrapTD" >教师姓名</td>
      <td  class="noWrapTD" >开课日期</td>
    <td  class="noWrapTD" >评论人</td>
    <td  class="noWrapTD">评论内容</td>
    <td  class="noWrapTD">评论时间</td>
    
    </tr>  <asp:Repeater ID="Repeater1" runat="server">
           <ItemTemplate>
          <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
           <td class="ta2">
            <asp:LinkButton CssClass="button2" ID="btnDelete" runat="server" CommandArgument='<%#Eval("commentid")%>' OnCommand="btnDelete_Click" Text="删除"></asp:LinkButton>
           </td>
           <td class="ta2"><%#Eval("CourseName")%>&nbsp;</td>
                 <td class="ta2"><%#Eval("VTC_Number")%>&nbsp;</td>
             <td class="ta2"><%#Eval("TeacherName")%>&nbsp;</td>
               <td class="ta2"><%#Eval("VCL_startDate")%>&nbsp;</td>
               <td class="ta2"><%#Eval("CommentUserName")%>&nbsp;</td>
             <td class="ta2" onmouseover="this.title = this.innerText" >
             <div  style="overflow: hidden; width: 270px; white-space: nowrap; text-overflow: ellipsis;"><%#Eval("CommentContent")%>&nbsp;</div></td>
           <td class="ta2"><%#Eval("CreatedTime")%>&nbsp;</td>
           
           </tr>
            </ItemTemplate>
            </asp:Repeater>
             </table>
              <br class="sp3px" />
             <webdiyer:AspNetPager ID="pager" runat="server" 
                onpagechanged="pager_PageChanged" CssClass="anpager" CurrentPageButtonClass="cpb"  PageSize="20" >
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
